package com.monkey.web.platform.service;


import com.monkey.core.domain.organization.Organization;
import com.monkey.core.domain.user.User;
import com.monkey.core.plugin.dto.MonkeyDto;
import com.monkey.core.plugin.service.BaseTreeableService;
import com.monkey.core.repository.search.Searchable;
import com.monkey.core.web.response.MonkeyResponseDto;
import org.springframework.data.domain.Page;


/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/14 18:39:22
 */
public interface OrganizationService extends BaseTreeableService<Organization, Long> {

    void addOrganization(MonkeyDto monkeyDto);

    void modifyOrganization(MonkeyDto monkeyDto);

    void removeOrganizations(Long[] Ids);
    /**
     * 找出用户通过部门信息
     *
     * @param organization
     * @param searchable
     * @return
     */
    public Page<User> findUsersByOrganization(Organization organization, Searchable searchable);

}